package com.briup.estore.dao;

import com.briup.estore.common.dto.OrderPaySuccessDTO;
import com.briup.estore.common.dto.OrderSearchDTO;
import com.briup.estore.common.pojo.Order;

import java.sql.Timestamp;
import java.util.List;

/**
 * @Author briup-adam
 * @Date 2023/8/2 下午2:22
 * @Description 对表【es_order】的数据库操作
 **/

public interface OrderDao {

    void completeOrder( String orderId);

    Order selectById(String orderId);

    void updateStatusToClose(String orderId);

    void save(Order order);


    List<Order> selectOrderDetailByUserId(String orderId, int orderStatus, Integer userId);

    void paySuccess(String orderId, Timestamp payDate, String payWay);
}
